package com.xperblueray.stepbystep;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@ServletComponentScan
// 导入资源配置文件，让Spring Boot可以读取到，类似于XML配置文件中的<import>标签
@ImportResource(locations = {"classpath:spring-mvc.xml"})
// 启用异步调用
@EnableAsync
// 启用retry
@EnableRetry
public class StepByStepApplication {

    public static void main(String[] args) {
        SpringApplication.run(StepByStepApplication.class, args);
    }

}
